package com.xzj.spring.annotation;

import java.lang.annotation.*;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj.spring.annotation
 * @ClassName: AliasFor
 * @Author: xzj
 * @Description:
 * @Date: 2022/7/14 14:14
 * @Version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface AliasFor {

    @AliasFor("attribute")
    String value() default "";

    @AliasFor("value")
    String attribute() default "";

    Class<? extends Annotation> annotation() default Annotation.class;
}
